package Abstract;

public abstract class Animal {
    private String name;
    //动物叫的行为：不具体，是抽象的
    public abstract void cry();

    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Animal() {
    }
}
